import {get, post} from "../utils/request.js";

export const QueryDataApi = {
    // 宏观统计参数
    getmacroType: () => {
        return get('/v1/param-macroType/index.html');
    },
    // 宏观时间
    getDate: () => {
        return get('/v1/param-timeRangeChina/index.html');
    },
    // 进出口类型
    getTradeType: () => {
        return get('/v1/param-exIm/index.html');
    },
    // 计算方式
    getCalculationType: () => {
        return get('/v1/param-statisticsType/index.html');
    },
    // 详细商品统计
    // 贸易方式
    getTradeDetailType: () => {
        return get('/v1/param-mode/index.html');
    },
    // 贸易伙伴
    getPartnerType: () => {
        return get('/v1/param-country/index.html');
    },
    // 收发货地
    getAddressType: () => {
        return get('/v1/param-port/index.html');
    },
    // 其他数值
    getOtherType: () => {
        return get('/v1/param-dataCol/index.html');
    },
    // 详细商品时间
    getGoodsTime: () => {
        return get('/v1/param-timeRangeChina2/index.html');
    },
    // 中国-宏观搜索
    ChMacroSearch: (payload) => {
        return get('/v1/data-chinaBaseList/index.html', payload);
    },
    // 中国-详细商品统计搜索
    ChinDetailSearch: (payload) => {
        return get('/v1/data-chinaSeniorList/index.html', payload);
    },
    // 报告国参数
    ReportCountryType: () => {
        return get('/v1/param-reporter/index.html');
    },
    // 伙伴国参数
    PartnerCountriesType:()=>{
        return get('/v1/param-partner/index.html');
    }
  } 
   